package com.example.project.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: Jerry.Zhang
 * @date: 2022/9/22 14:23
 */
/**
    * 奖品
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_win")
public class TbWin implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ip
     */
    @TableField(value = "user_ip")
    private String userIp;

    /**
     * 物品名称
     */
    @TableField(value = "box_id")
    private Long boxId;

    /**
     * 中奖日期
     */
    @TableField(value = "box_date")
    private LocalDateTime boxDate;

    private static final long serialVersionUID = 1L;

}